package cn.jjxx.modules.pb.service.impl;

import java.util.List;
import java.util.Map;

import cn.jjxx.core.common.service.impl.CommonServiceImpl;
import cn.jjxx.modules.pb.mapper.PbPoliticalLifeMapper;
import cn.jjxx.modules.pb.entity.PbPoliticalLife;
import cn.jjxx.modules.pb.service.IPbPoliticalLifeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**   
 * @Title: 三会一课开展情况
 * @Description: 三会一课开展情况
 * @author yw
 * @date 2022-01-10 16:54:39
 * @version V1.0   
 *
 */
@Transactional
@Service("pbPoliticalLifeService")
public class PbPoliticalLifeServiceImpl  extends CommonServiceImpl<PbPoliticalLifeMapper,PbPoliticalLife> implements  IPbPoliticalLifeService {

	@Override
	public boolean insertBatch(List<PbPoliticalLife> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<PbPoliticalLife> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}

	@Override
	public List<Map<String,Object>> selectTypeNum(String month) {
		return baseMapper.selectTypeNum(month);
	}

	@Override
	public List<Map<String,Object>> selectOrgNum(String month) {
		return baseMapper.selectOrgNum(month);
	}

	@Override
	public List<Map<String,Object>> selectOrgTypeNum(String month) {
		return baseMapper.selectOrgTypeNum(month);
	}
}
